<?php
require "conn.php";

//新品首发
$result=$conn->query("select * from xinpinshoufa");
$arr=array();
for($i=0;$i<$result->num_rows;$i++){
    $arr[$i]=$result->fetch_assoc();
}
echo json_encode($arr);
